package com.javaclimb.accounting.service.impl;

import com.javaclimb.accounting.dao.CardDao;
import com.javaclimb.accounting.po.Card;
import com.javaclimb.accounting.service.CardService;
import com.javaclimb.accounting.vo.CardVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: XX
 * @create: 2022-12-28 09:59
 **/

@Service
public class CardServiceImpl implements CardService {
    @Autowired
    private CardDao cardDao;

    @Override
    public CardVo findCardById(long cardId) {
        return cardDao.findCardById(cardId);
    }

    @Override
    public Card findCard(Card card) {
        return cardDao.findCard(card);
    }

    @Override
    public Card authentication(Card card) {
        return cardDao.authentication(card);
    }
}
